{layout name="p/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>房车管理 <small>房车信息</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="/caravan"><i class="fa fa-dashboard"></i> 房车信息列表</a></li>
          <li class="active"><i class="fa fa-table"></i> 关联设置</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以添加、修改房车关联信息
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <!-- 房车关联start -->
        <div class="modal-content">
          <form class="form-horizontal" role="form" action="/caravan/postRelation" method="post">
          <input type="hidden" name="caravan_id" value="{$caravan_id}">
            <div class="modal-header">
              <h4 class="modal-title" id="myModalLabel">
                 房车关联设置
              </h4>
            </div>
            <div class="modal-body">
              <!-- 营地泊位关联start -->
              <div class="form-group">
                <label for="firstname" class="col-sm-3 control-label">会员卡号</label>
                <div class="col-sm-9">
                   <input type="text" class="form-control" id="firstname" name="card_number" 
                      placeholder="请填写关联会员卡号码">
                </div>
              </div>
              <div class="form-group">
                <label for="firstname" class="col-sm-3 control-label">手机号码</label>
                <div class="col-sm-9">
                   <input type="text" class="form-control" id="firstname" name="phone" 
                      placeholder="请填写车辆所属人手机号码">
                </div>
              </div>
              <div class="form-group">
                <label for="firstname" class="col-sm-3 control-label">关联营地</label>
                <div class="col-sm-9">
                  <select name="camp_id" id="bs3Select" class="selectpicker show-tick form-control" data-live-search="true">  
                    <option selected="true" value='0'>请选择营地</option>  
                    {volist name='camps' id='vo'}
                          <option value="{$vo.id}" >{$vo.name}</option>  
                    {/volist}
                    
                  </select>


                </div>
              </div>
              <div class="form-group">
                <label for="firstname" class="col-sm-3 control-label">关联泊位编号</label>
                <div class="col-sm-9">
                   <input type="text" class="form-control" id="firstname" name="parknumber" 
                      placeholder="请填写泊位编号">
                </div>
              </div>
              <!-- 营地泊位关联end -->
            </div>
            <div class="modal-footer">
              <input type="button" value="返回" class="btn btn-default"  onclick="javascript:history.back(-1);" />
              <button type="submit" class="btn btn-primary">
                 提交
              </button>
            </div>
          </form>
        </div>
        <!-- 房车关联end -->
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      
    </div>

  </div><!-- /#page-wrapper -->


